package com.lqq.chapter06;

import java.util.concurrent.Callable;

/**
 * @Author lqq677
 * @Date 2021/8/11 16:08
 * @Description Callable接口
 */
//创建新类 MyRunnable 实现 runnable 接口
class MyRunnable implements Runnable {
    @Override
    public void run() {

    }
}


//新类 MyThread2 实现 callable 接口
class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        return 677;
    }
}

